
<%@ page import="com.carmanagement.Maintenance" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'maintenance.label', default: 'Maintenance')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-maintenance" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<nav>
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>				
				<li><g:link class="list" action="show" controller="vehicle" id="${maintenanceInstance?.vehicle?.id}"><g:message code="default.return.label" default="return" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</nav>
		<div id="show-maintenance" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list maintenance">
			
				<g:if test="${maintenanceInstance?.predictedDate}">
				<li class="fieldcontain">
					<span id="predictedDate-label" class="property-label"><g:message code="maintenance.predictedDate.label" default="Predicted Date" /></span>
					
						<span class="property-value" aria-labelledby="predictedDate-label"><g:formatDate format="yyyy-MM-dd" date="${maintenanceInstance?.predictedDate}" /></span>
					
				</li>
				</g:if>
				
				<g:if test="${maintenanceInstance?.date}">
				<li class="fieldcontain">
					<span id="date-label" class="property-label"><g:message code="maintenance.date.label" default="Date" /></span>
					
						<span class="property-value" aria-labelledby="date-label"><g:formatDate format="yyyy-MM-dd" date="${maintenanceInstance?.date}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${maintenanceInstance?.cost}">
					<li class="fieldcontain">
						<span id="cost-label" class="property-label"><g:message code="maintenance.cost.label" default="Cost" /></span>
						
							<span class="property-value" aria-labelledby="cost-label"><g:fieldValue bean="${maintenanceInstance}" field="cost"/></span>
						
					</li>
				</g:if>
			
				<g:if test="${maintenanceInstance?.mileage}">
					<li class="fieldcontain">
						<span id="mileage-label" class="property-label"><g:message code="maintenance.mileage.label" default="Mileage" /></span>
						
							<span class="property-value" aria-labelledby="mileage-label"><g:fieldValue bean="${maintenanceInstance}" field="mileage"/></span>
						
					</li>
				</g:if>
			
				<g:if test="${maintenanceInstance?.description}">
				<li class="fieldcontain">
					<span id="description-label" class="property-label"><g:message code="maintenance.description.label" default="Description" /></span>
					
						<span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${maintenanceInstance}" field="description"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${maintenanceInstance?.vehicle}">
				<li class="fieldcontain">
					<span id="vehicle-label" class="property-label"><g:message code="maintenance.vehicle.label" default="Vehicle" /></span>
					
						<span class="property-value" aria-labelledby="vehicle-label"><g:link controller="vehicle" action="show" id="${maintenanceInstance?.vehicle?.id}">${maintenanceInstance?.vehicle?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form url="[resource:maintenanceInstance, action:'delete']" method="DELETE">
				<fieldset class="buttons">
					<g:link class="edit" action="edit" resource="${maintenanceInstance}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
